package com.dm.cloud.auth.service;

import com.dm.cloud.auth.common.dto.AuthRoleDTO;
import com.dm.cloud.auth.common.po.AuthRole;
import com.dm.cloud.tkmybatis.service.BaseEntityService;
import com.dm.cloud.auth.common.request.AuthRoleSearchRequest;

import java.util.List;

/**
   * @author hcx
   * @type AuthRoleService.java
   * @desc AuthRole service
   */
public interface AuthRoleService extends BaseEntityService<AuthRoleSearchRequest,AuthRole> {

    /**
     * 根据用户ID查询用户角色
     * @param uid
     * @return
     */
    List<AuthRole> findRoleByUid(String uid);

    /**
     * 根据用户ID查询用户角色id列表
     * @param uid
     * @return
     */
    List<String> findRoleIdsByUid(String uid);

    List<AuthRoleDTO> findRoleByUsername(String username);
}
